package com.sinya.shoppingmall.widget.timeline;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import com.sinya.shoppingmall.R;
import com.vipul.hp_hp.timelineview.TimelineView;

/**
 * Created by HP-HP on 05-12-2015.
 */
public class TimeLineViewHolder extends RecyclerView.ViewHolder{

    public TextView mOrderId;
    public TextView mOrderPrice;
    public TextView mOrderStatus;
    public TextView mOrderTime;

    public TimelineView mTimelineView;

    public TimeLineViewHolder(View itemView, int viewType) {
        super(itemView);

        //实例化item控件
        mOrderId = (TextView) itemView.findViewById(R.id.orderinfo_tv_orderNum);
        mOrderPrice = (TextView) itemView.findViewById(R.id.orderinfo_tv_orderprice);
        mOrderStatus = (TextView) itemView.findViewById(R.id.orderinfo_tv_orderstatus);
        mOrderTime = (TextView) itemView.findViewById(R.id.orderinfo_tv_ordertime);

        mTimelineView = (TimelineView) itemView.findViewById(R.id.time_marker);
        mTimelineView.initLine(viewType);
    }

}
